import { BaseEntity } from './baseEntity';

export class Comment extends BaseEntity {
  //post,announcement，messageBoard
  comemntModuleType!: string;

  //模块id
  moduleId!: number;

  //父级id
  parentId!: number;

  //引用id 决定是评论的回复 还是回复的回复
  quoteId!: number;

  //内容
  content!: string;

  //作者
  author!: string;

  //头像

  avatar!: string;

  //网站

  site!: string;

  //邮件地址
  email!: string;

  //系统用户创建
  isSysUserCreated!: boolean;

  //系统用户Id
  userId!: number;

  //是否置顶
  isTop!: boolean;

  //是否垃圾评论

  isDirty!: boolean;

  //是否私密评论
  isPrivate!: boolean;

  //点赞数
  likes!: number;

  //ip地址
  ip!: string;

  //发布状态  Draft,  Published,Recycle

  publishState!: string;

  //ip地址
  ip_location!: string;

  //设备
  equipment!: string;

  //全部回复

  replies!: Comment[];

  expandAll!: boolean;

  replyName!: string;
}
